import { axios } from '@/utils/request'

const api = {
  getList: '/saas-category/list',
  changeStatus: '/saas-category/change-status',
  editCategory: '/saas-category/edit',
  deleteCat: '/saas-category/delete'
}

export default api

export function getList (parameter) {
  return axios({
    url: api.getList,
    method: 'get',
    params: parameter
  })
}

export function changeStatus (parameter) {
  return axios({
    url: api.changeStatus,
    method: 'post',
    data: parameter
  })
}

export function editCategory (parameter) {
  return axios({
    url: api.editCategory,
    method: 'post',
    data: parameter
  })
}

export function deleteCat (parameter) {
  return axios({
    url: api.deleteCat,
    method: 'post',
    data: parameter
  })
}
